<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
// load tooltip behavior
JHtml::_('behavior.tooltip');
$css = JURI::root(false)."components/com_nrmresearch/resources/css/style.css";
$images_path = JURI::root(false)."components/com_nrmresearch/resources/images/";
$doc =& JFactory::getDocument();
$doc->addStyleSheet($css);
$item = $this->item;

//Social shareing url
$url = 'http://'.$_SERVER["HTTP_HOST"].JRoute::_ ( 'index.php?option=com_nrmresearch&Itemid='.PUBLICATIONS_MENUID.'&view=publication&id=', false );
$shareUrl = urlencode($url);

//For print-email action
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$app = JFactory::getApplication();
$params = $app->getParams();
$isPrint = JRequest::getVar('print',0);
//Print action icon
if($isPrint) echo JHtml::_('icon.print_screen',  $this->item, $params);


?>
<style>
<!--
body#ot-body {
    background: none repeat scroll 0 0 #fff;
    color: #555555;
    font-family: 'Frutiger',Arial,Helvetica,sans-serif;
}
-->
</style>
<h1 style="color: #0082c8;border-bottom:2px solid;margin-top:40px;">Current Research</h1>
<p style="background-color: #d4e4f5; padding:10px; color:#0082c8;font-style: italic;font-size:14px;"><strong>Would you like to help out with an existing or proposed research project? Now you can offer your services - as a researcher,
volunteer, paid contractor or otherwise - to one of the project partners below.</strong></p>
<div id = "result" class="result" <?php if(!isPrint) echo 'style="float:right; width: 945px;"'; else echo 'style="width:100%;"';?>>
<?php 
if($item->id <1){
	echo "Sorry, no results were found.";
}
else{?>	
		<div id="result-head>" class="result-head ">
			<h3><strong><?php echo $item->title;?></strong></h3>
			<?php if(trim($item->journal) !=""):?>
			<br>
			<label><strong>Journal:</strong></label><label class="grey"><?php  echo $item->journal;?></label>
			<?php endif;?>
			<?php if(trim($item->year_of_publication) !=""):?>
			<br>
			<label><strong>Year of Publication:</strong></label><label class="grey"><?php echo JHtml::_('date', $item->year_of_publication, JText::_('DATE_FORMAT_LC6')); ?></label>
			<?php endif;?>
			<?php if(trim($item->authors) !=""):?>
			<br>
			<label><strong>Authors:</strong></label><label class="grey"><?php  echo $item->authors;?></label>	
			<?php endif;?>
			<br><br>
					
		</div>
		
		<div id="result-body" class="result-body">
			<label><strong>Existing industry/government collaboration:</strong><?php echo $item->existing_industry_government_collaboration;?> </label>
			<br>
			<br>
			<label><strong>Lead Organisation</strong></label>
			<p><?php echo $item->lead_organisation;?></p>
			<label><strong>Partner Organisation/s</strong></label>			
			<p><?php echo $item->partner_organisation_s;?></p>
			<label><strong>Contact</strong></label>			
			<p><?php echo $item->contact;?></p>
			<label><strong>Keywords</strong></label>			
			<p><?php echo $item->keywords;?></p>
		</div>
		
		
		<div class="clear both"></div>
	<?php 
}
?>
</div>
